#ifndef SL_SCRIPTMANAGER_HPP
#define SL_SCRIPTMANAGER_HPP

// Eigene Header
#include "../System/Lua.hpp"
#include "ManagerTemplate.hpp"

namespace sl
{
	namespace tmp
	{
		class ScriptManagerS : public Singleton<ScriptManagerS>, public ManagerTemplate<std::string>
		{
		friend class Singleton<ScriptManagerS>;
		friend class ManagerTemplate<std::string>;
		public:
			using Singleton<ScriptManagerS>::myInstance;

			static ScriptManagerS* GetInstance()
			{
				if (!myInstance)
					myInstance = new ScriptManagerS();

				return myInstance;
			}

			ScriptManagerS* Start(const std::string& filename);
		};
	}

	#define ScriptManager tmp::ScriptManagerS::GetInstance()
}

#endif //SL_SCRIPTMANAGER_HPP